.navbar-brand {
    position: relative;
    min-height: 40px;
}

.navbar-brand>img {
    height: 100%;
}